<?php
/**
 * @author Jumper Swordwave
 * date: 2021/04/19
 */
declare(strict_types=1);
namespace App\Game\Core;

/**
 * 相关命令
 */
class Command
{
    const SYS_CONNECTED = 1;    //用户连接上
    const SYS_HEART_RES = 2;    //心跳回复
    const SYS_HEART_REQ = 3;    //心跳请求
    const SYS_LOGIN = 4;        //玩家登陆
    const SYS_LOGOUT = 5;       //玩家离开
    const SYS_SEARCH_ROOM = 6;  //玩家寻找房间
    const SYS_RE_CONNECT_REQ = 7;   //玩家重连上房间
    const SYS_RE_CONNECT_RES = 8;   //玩家重连回复

    const GAME_START_REQ = 20;  //游戏开始请求
    const GAME_START_RES = 21;  //游戏开始
    const GAME_USER_JOIN_RES = 22;  //玩家加入房间
    const GAME_USER_LEAVE_RES = 23; //玩家离开房间
    const GAME_SEND_CARD_RES = 24;  //发牌响应
    const GAME_CALL_RES = 25;   //叫地主响应
    const GAME_CALL_REQ = 26;   //叫地主请求
    const GAME_BASECARD_RES = 27;   //摸底牌响应
    const GAME_OUT_RES = 28;    //出牌响应
    const GAME_OUT_REQ = 29;    //出牌请求
    const GAME_OVER_RES = 30;   //游戏结束响应
    const GAME_INFO_RES = 31;   //游戏消息响应,发送各类提示消息
    const GAME_USER_READY_RES = 32; //玩家准备就绪

    const CHAT_MSG_REQ = 41;    //聊天请求
    const CHAT_MSG_RES = 42;    //聊天响应
}